import React, { Component } from 'react';

class App extends Component {
  handleClick=() => {
    console.log("执行button操作");
  }
  handleAClick=(e) => {
    // e合成事件
    console.log(e);
    e.preventDefault();
  }
  render() {
    return (
      <div>
        <button onClick={this.handleClick}>+</button>
      <a href="http://ww.bing.com"onClick = {this.handleAClick}>bing</a>
      </div>
    );
  }
}

export default App;
